import Vue from 'vue'
import KVueRouter from './kvue-router'
import HelloWorld from '@/components/HelloWorld'
import About from '@/components/About'

Vue.use(KVueRouter)

const routes = [
  {
    path: '/',
    name: 'HelloWorld',
    component: HelloWorld
  },
  {
    path: '/about',
    name: 'about',
    component: About
  }
]

const router = new KVueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})

export default router
